package store.dao;

import java.sql.Connection;
import java.util.List;

import store.domain.Order;
import store.domain.OrderItem;
import store.domain.User;

public interface OrderDao {

	public void saveOrder(Connection con,Order order) throws Exception;

	public void saveOrderItem(Connection con,OrderItem orderItem) throws Exception;

	public int getTotalRecords(User user)throws Exception;

	public List findMyOrdersWithPage(User user, int startIndex, int pageSize)throws Exception;

	public Order findOrderByOid(String oid)throws Exception;

	public void updateOrder(Order order)throws Exception;

	public List<Order> findOrders()throws Exception;

	public List<Order> findOrders(String state)throws Exception;


}
